# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corestuff
pkgver=4.5.0
pkgrel=0
pkgdesc="An activity viewer from C-Suite"
# armhf blocked by extra-cmake-modules -> kglobalaccel
arch="all !armhf"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="
	cmake
	kglobalaccel5-dev
	libcprime-dev
	libcsys-dev
	libxcomposite-dev
	libxi-dev
	qt5-qtbase-dev
	qt5-qtx11extras-dev
	samurai
	xcb-util-dev
	xcb-util-wm-dev
	"
source="https://gitlab.com/cubocore/corestuff/-/archive/v$pkgver/corestuff-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No test suite

build() {
	cmake -B build -GNinja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
eba12784dd320f4b6ebd8221f58ac8beb90becc2b187d486a3c3ac2bdc9ceee630ec2eb6761b2b0021b841c5b17c76648b08a4d4e949f15e52dcc4f3e5675bf0  corestuff-v4.5.0.tar.gz
"
